import Vue from 'vue'
import App from './App.vue'
import store from "./store/index";  // vuex
import router from './router'

window.eventBus = new Vue();
Vue.config.productionTip = false

// 自定义指令v-focus
Vue.directive('focus', {
  inserted: function (el, binding, vnode, oldVnode) {
    console.log([
      {el,
      binding,
      vnode,
      oldVnode}
    ])

    el.focus()
  },
  bind:function () {

  },
  update:function () {

  }
})

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
